Ext.define('DragonApp.model.Level', {
    extend: 'Ext.data.Model',
    fields: [
        {name: 'channel'},
        {name: 'server'},
        {name: 'level'},
        {name: 'total'},
        {name: 'active'},
        {name: 'inactive'},
        {name: 'inactive_rate', convert: function(value, record) {
          return (Ext.util.Format.number(value*100, '0.00%'));
        }}]
});